package com.dev.security.manager.beans;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 角色权限关联表
 * @author 潜行的青衣
 * @see
 */
@Entity
@Table(name = "t_cds_rolepermunit")
public class RolePermUnit {

	@EmbeddedId
	private RolePermUnitId id;
	
	@ManyToOne
	@JoinColumn(name="per_id", insertable=false, updatable=false)
	private Permission permission;

	public RolePermUnitId getId() {
		return id;
	}

	public void setId(RolePermUnitId id) {
		this.id = id;
	}

	public Permission getPermission() {
		return permission;
	}

	public void setPermission(Permission permission) {
		this.permission = permission;
	}

}
